
import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementPlus from 'element-plus'


import "./styles/reset.css";
import 'element-plus/dist/index.css'

// 如果您正在使用CDN引入，请删除下面一行。
import * as ElementPlusIconsVue from '@element-plus/icons-vue'



const app = createApp(App)

// app.config.globalProperties.$router = router;
// app.config.globalProperties.$route = xxx;
app.use(router)

// app.config.globalProperties.$store = store;
app.use(store)


// app.config.globalProperties
app.use(ElementPlus)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
   app.component(key, component)
}

app.mount('#app')
